
package com.one.odf.model;

import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for registeredDisciplineType complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="registeredDisciplineType"&gt;
 *   &lt;complexContent&gt;
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
 *       &lt;sequence&gt;
 *         &lt;element name="DisciplineEntry" type="{}extendedDataType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *         &lt;element name="RegisteredEvent" type="{}registeredEventType" maxOccurs="unbounded" minOccurs="0"/&gt;
 *       &lt;/sequence&gt;
 *       &lt;attribute name="Code" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /&gt;
 *       &lt;attribute name="IFId" type="{http://www.w3.org/2001/XMLSchema}string" default="" /&gt;
 *     &lt;/restriction&gt;
 *   &lt;/complexContent&gt;
 * &lt;/complexType&gt;
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "registeredDisciplineType", propOrder = {
    "disciplineEntry",
    "registeredEvent"
})
public class RegisteredDisciplineType {

    @XmlElement(name = "DisciplineEntry")
    protected List<ExtendedDataType> disciplineEntry;
    @XmlElement(name = "RegisteredEvent")
    protected List<RegisteredEventType> registeredEvent;
    @XmlAttribute(name = "Code", required = true)
    protected String code;
    @XmlAttribute(name = "IFId")
    protected String ifId;

    /**
     * Gets the value of the disciplineEntry property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the disciplineEntry property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getDisciplineEntry().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link ExtendedDataType }
     * 
     * 
     */
    public List<ExtendedDataType> getDisciplineEntry() {
        if (disciplineEntry == null) {
            disciplineEntry = new ArrayList<ExtendedDataType>();
        }
        return this.disciplineEntry;
    }

    /**
     * Gets the value of the registeredEvent property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the registeredEvent property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRegisteredEvent().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link RegisteredEventType }
     * 
     * 
     */
    public List<RegisteredEventType> getRegisteredEvent() {
        if (registeredEvent == null) {
            registeredEvent = new ArrayList<RegisteredEventType>();
        }
        return this.registeredEvent;
    }

    /**
     * Gets the value of the code property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getCode() {
        return code;
    }

    /**
     * Sets the value of the code property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setCode(String value) {
        this.code = value;
    }

    /**
     * Gets the value of the ifId property.
     * 
     * @return
     *     possible object is
     *     {@link String }
     *     
     */
    public String getIFId() {
        if (ifId == null) {
            return "";
        } else {
            return ifId;
        }
    }

    /**
     * Sets the value of the ifId property.
     * 
     * @param value
     *     allowed object is
     *     {@link String }
     *     
     */
    public void setIFId(String value) {
        this.ifId = value;
    }

    public void setDisciplineEntry(List<ExtendedDataType> disciplineEntry) {
        this.disciplineEntry = disciplineEntry;
    }

    public void setRegisteredEvent(List<RegisteredEventType> registeredEvent) {
        this.registeredEvent = registeredEvent;
    }

    public String getIfId() {
        return ifId;
    }

    public void setIfId(String ifId) {
        this.ifId = ifId;
    }
}
